package com.psq.business.main.router

import android.content.Context
import android.content.Intent
import com.alibaba.android.arouter.facade.annotation.Route
import com.psq.business.main.ui.activity.MainActivity
import com.psq.core.common.provider.IMainProvider
import com.psq.core.common.provider.ROUTER_MAIN_PROVIDER
import com.psq.core.common.utils.navigation

@Route(path = ROUTER_MAIN_PROVIDER)
class MainProvider : IMainProvider {

    override fun navHome() = navigation(ROUTER_PATH_MAIN) {
        addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
    }

    override fun getClassName(): String = MainActivity::class.java.name

    override fun init(context: Context?) {
    }
}